{% for block in blocks %}
    {% if block.type != "header" and  block.type != "footer" %}
    <div id="oemsaas-section-{{block.id}}" data-section-type="{{ block.type }}" data-section-id="{{ block.id }}">
        {% assign section = block.params %}
        {% case block.type %}
        {% when 'block_blogs' %}
{% section 'block_blogs' ,section : section,block_id:block.id %}
{% when 'block_brand_list' %}
{% section 'block_brand_list' ,section : section,block_id:block.id %}
{% when 'block_collection' %}
{% section 'block_collection' ,section : section,block_id:block.id %}
{% when 'block_collection_list' %}
{% section 'block_collection_list' ,section : section,block_id:block.id %}
{% when 'block_collection_slides' %}
{% section 'block_collection_slides' ,section : section,block_id:block.id %}
{% when 'block_collection_tab' %}
{% section 'block_collection_tab' ,section : section,block_id:block.id %}
{% when 'block_collection_waterfall' %}
{% section 'block_collection_waterfall' ,section : section,block_id:block.id %}
{% when 'block_comment' %}
{% section 'block_comment' ,section : section,block_id:block.id %}
{% when 'block_comment_image' %}
{% section 'block_comment_image' ,section : section,block_id:block.id %}
{% when 'block_coupon' %}
{% section 'block_coupon' ,section : section,block_id:block.id %}
{% when 'block_facebook' %}
{% section 'block_facebook' ,section : section,block_id:block.id %}
{% when 'block_html' %}
{% section 'block_html' ,section : section,block_id:block.id %}
{% when 'block_image' %}
{% section 'block_image' ,section : section,block_id:block.id %}
{% when 'block_image2' %}
{% section 'block_image2' ,section : section,block_id:block.id %}
{% when 'block_image3' %}
{% section 'block_image3' ,section : section,block_id:block.id %}
{% when 'block_image4' %}
{% section 'block_image4' ,section : section,block_id:block.id %}
{% when 'block_image5' %}
{% section 'block_image5' ,section : section,block_id:block.id %}
{% when 'block_image_text' %}
{% section 'block_image_text' ,section : section,block_id:block.id %}
{% when 'block_image_text_list' %}
{% section 'block_image_text_list' ,section : section,block_id:block.id %}
{% when 'block_newsletter' %}
{% section 'block_newsletter' ,section : section,block_id:block.id %}
{% when 'block_pinterest' %}
{% section 'block_pinterest' ,section : section,block_id:block.id %}
{% when 'block_product_single' %}
{% section 'block_product_single' ,section : section,block_id:block.id %}
{% when 'block_slides' %}
{% section 'block_slides' ,section : section,block_id:block.id %}
{% when 'block_slogan' %}
{% section 'block_slogan' ,section : section,block_id:block.id %}
{% when 'block_twitter' %}
{% section 'block_twitter' ,section : section,block_id:block.id %}
{% when 'block_video' %}
{% section 'block_video' ,section : section,block_id:block.id %}
{% when 'block_video_list' %}
{% section 'block_video_list' ,section : section,block_id:block.id %}
{% when 'collection_detail' %}
{% section 'collection_detail' ,section : section,block_id:block.id %}
{% when 'collection_list' %}
{% section 'collection_list' ,section : section,block_id:block.id %}
{% when 'footer' %}
{% section 'footer' ,section : section,block_id:block.id %}
{% when 'header' %}
{% section 'header' ,section : section,block_id:block.id %}
{% when 'product_detail' %}
{% section 'product_detail' ,section : section,block_id:block.id %}
{% when 'block_collection_image_text' %}
{% section 'block_collection_image_text' ,section : section,block_id:block.id %}
{% when 'block_page_list' %}
{% section 'block_page_list' ,section : section,block_id:block.id %}
{% when 'block_blog_list' %}
{% section 'block_blog_list' ,section : section,block_id:block.id %}
        {% endcase %}
    </div>
    {% endif %}
    {% endfor %}